﻿
using OnlineCourse.Model.Entity;
using OnlineCourse.Services.Model;
using System;
using System.Collections.Generic;
using System.Text;

namespace OnlineCourse.Services.IServices
{
    public interface ICouponService
    {
        /// <summary>
        /// 添加优惠券
        /// </summary>
        /// <param name="Title">标题</param>
        /// <param name="Price">价格</param>
        /// <param name="Number">数量</param>
        /// <returns></returns>
        bool Add(string Title, decimal Price, int Number);
        /// <summary>
        /// 删除优惠券
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool Delete(Guid id);
        /// <summary>
        /// 获取单个优惠券明细
        /// </summary>
        /// <returns></returns>
        CouponsModel Get(Guid id);
        /// <summary>
        /// 增加券的张数
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool Ad(Guid id, int number);
        /// <summary>
        /// 销毁券的张数
        /// </summary>
        /// <param name="id"></param>
        /// <param name="number"></param>
        /// <returns></returns>
        bool Reduce(Guid id, int number);
    }
}
